package cn.bellychang.ood.litejunit.v2.biz.calculator;

/**
 * @author ChangLiang
 * @date 2020/5/26
 */
public class Calculator {
    private int result = 0;

    public void add(int x) {
        result += x;
    }

    public void subtract(int x) {
        result -= x;
    }

    public int getResult() {
        return this.result;
    }
}
